﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Baustein {
    class COder : CBaustein {

        public void calc() {
            BAusgang = false;

            for (int i = 0; i < this.IAnzEin; i++) {
                // 00=>0
                // 01=>1
                // 10=>1
                // 11=>0

                if (BEingaenge[i] != BInvert[i]) {
                    bAusgang = true;
                    break;
                }
            }
        }

        public COder(int iAnzEin, string strName)
            : base(iAnzEin, strName) {
            this.StrName = strName;
        }


    }
}
